import {javaInstance} from '@/utils/https.js'

// 用户登录
export const userPageApi = (params,data) => {
    return javaInstance({
        url: '/user/getUserPage',
        method: 'POST',
        params,
        data
    })
}

// 获取今日新增作品数量
export const newUserNumApi = () => {
    return javaInstance({
        url: '/user/getNewUserNum',
        method: 'GET'
    })
}

// updateUserApi,delUserByIdApi
// 获取今日新增作品数量
export const updateUserApi = (data) => {
    return javaInstance({
        url: '/user/update',
        method: 'PUT',
        data
    })
}

// 获取今日新增作品数量
export const delUserByIdApi = (params) => {
    return javaInstance({
        url: '/user/deleteById',
        method: 'DELETE',
        params
    })
}